import { createRouter,createWebHistory } from "vue-router"

import routes from "./module/routes";

import layoutRoutes from "./autoload";

// console.log(layoutRoutes);

const router = createRouter({
    history: createWebHistory(),
    routes:[...routes,...layoutRoutes]
});

export function setupRouter(app){
    app.use(router)
}

export default  router;